﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.APP
{
    public class MessageCMS
    {
        #region Fields
        /// <summary>
        /// 计数器
        /// </summary>
        private decimal id;
        /// <summary>
        /// 计数器
        /// </summary>
        public decimal Id
        {
            get { return id; }
            //set { id = value; }
        }
        /// <summary>
        /// 新闻Id
        /// </summary>
        private decimal newsId;
        /// <summary>
        /// 新闻Id
        /// </summary>
        public decimal NewsId
        {
            get { return newsId; }
            //set { newsId = value; }
        }
        /// <summary>
        /// 发送者
        /// </summary>
        private string sender;
        /// <summary>
        /// 发送者
        /// </summary>
        public string Sender
        {
            get { return sender; }
            //set { sender = value; }
        }
        /// <summary>
        /// 接收者
        /// </summary>
        private string receiver;
        /// <summary>
        /// 接收者
        /// </summary>
        public string Receiver
        {
            get { return receiver; }
            //set { receiver = value; }
        }
        /// <summary>
        /// 日期
        /// </summary>
        private DateTime date;
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime Date
        {
            get { return date; }
            //set { date = value; }
        }
        /// <summary>
        /// 内容
        /// </summary>
        private string words;
        /// <summary>
        /// 内容
        /// </summary>
        public string Words
        {
            get { return words; }
            //set { words = value; }
        }
        /// <summary>
        /// 是否阅读
        /// </summary>
        private bool ifRead;
        /// <summary>
        /// 是否阅读
        /// </summary>
        public bool IfRead
        {
            get { return ifRead; }
            //set { ifRead = value; }
        }
        #endregion Fields

        /// <summary>
        /// 发留言
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="sender">发送者</param>
        /// <param name="receiver">接受者</param>
        /// <param name="words">内容</param>
        public static int MakeMessage(decimal newsId, string sender, string receiver, string words)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读留言
        /// </summary>
        /// <param name="messageId">留言Id</param>
        /// <param name="receiver">接收者</param>
        public static MessageCMS Read(decimal messageId, string receiver)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读留言
        /// </summary>
        /// <param name="messageId">留言Id</param>
        public static MessageCMS ReadMessage(decimal messageId)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读最新留言
        /// </summary>
        /// <param name="howMany">数量</param>
        public static List<MessageCMS> ReadMessages(int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读新闻的留言
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="howMany">数量</param>
        public static List<MessageCMS> ReadMessagesbyNews(decimal newsId, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读发送的留言
        /// </summary>
        /// <param name="sender">发送者</param>
        /// <param name="howMany">数量</param>
        public static List<MessageCMS> ReadMessagesbySender(string sender, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读接收的留言
        /// </summary>
        /// <param name="receiver">接收者</param>
        /// <param name="howMany">数量</param>
        public static List<MessageCMS> ReadMessagesbyReceiver(string receiver, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 搜索留言
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="sender">发送者</param>
        /// <param name="receiver">接收者</param>
        /// <param name="timeFrom">时间开始</param>
        /// <param name="timeTo">时间结束</param>
        /// <param name="words">内容</param>
        /// <param name="ifRead">是否阅读</param>
        public static List<MessageCMS> SearchMessages(decimal? newsId, string sender, string receiver, DateTime? timeFrom, DateTime? timeTo, string words, bool? ifRead)
        {
            throw new System.NotImplementedException();
        }


    }
}
